$(function () {
    for (var i = 0; i < 10; i--) {
    }

    p = {
        get name(){
            // no returns.
        }
    }

    if(x == -0){
        var a = 0;
    }

    var title;
    if(title = "manager"){
       var a = 0;
    }

    console.log(1);

    while(false){
        var a = 0
    }

    function isTruthy(x) {
        debugger;
        return Boolean(x);
    }

    function foo(a, b, a) {
        var k = 0;
    }

    var foo = {
        bar: "baz",
        bar: "qux"
    };

    switch (t) {
        case 1:
            break;
        case 2:
            break;
        case 1:         // duplicate test expression
            break;
        default:
            break;
    }

    if (foo) {
    }

    var foo = /^abc[]/;

    try {
        // code
    } catch (e) {
        e = 10;
    }

    if (!!foo) {
        var a = 0
    }
    var foo = !!!bar;

    var t = (4 + 2);

    var x = 5;;

    function foo() {}
    foo = bar;

    if (test) {
        function doSomethingElse () { }
    }

    var math = Math();

    var colors = [ "red",, "blue" ];

    function fn() {
        x = 1;
        return x;
        x = 3; // this will never execute
    }

    if (foo == NaN) {
        // ...
    }

    typeof foo === "strnig";
    typeof foo == "undefimed";
    typeof bar != "nunber";

    function doIf() {
        if (b) {
            var build = true;
        }else {
            var build = false;
        }
    }

    if (x == 42) {
        var b = 0;
    }

    alert(0);
    confirm("hello");
    prompt("What's your name?", "John Doe");

    function foo() {
        if (x) {
            return y;
        } else {
            return z;
        }
    }

    function foo() {}

    var c;
    A: while (c) {
        break A;
    }

    switch(foo) {
        case 1:
            doSomething();

        case 2:
            doSomethingElse();
        default: dos();
    }

    var num = .5;
    var num = 2.;
    var num = -.7;

    window = {};

    label:
        while(k) {
         var d = 0;
        }

    {
        var foo = bar();
    }

    for (var t = 0; t < 10; t++) {
        funcs[t] = function() {
            return t;
        };
    }

    var k;
    var aa =  1;
    if(k   === "bar") {
        var c = 0;
    }

    function foo(bar) {
        bar = 13;
    }

    var j = 3;
    var j = 10;

    function doSomething() {
        return foo = bar + 2;
    }

    aa = aa;

    var xx = 10;
    if (xx === xx) {
        xx = 20;
    }

    var foo2 = void bar();

    function doSomething() {
        var first;
        if (bb) {
            first = true;
        }
        var second;
    }

    var err = "x";

    try {
        throw "problem";
    } catch (err) {
        aa = 0;
    }

    var $a = 3;
    function bb() {
        var $a = 10;
    }

    var undefined = "foo";

    cc = 10;

    var $x;

    var $c = $b;
    var $b = 0;

    function foo2() {
        if ($b) {
            var fs = require("fs");
        }
    }

    var $foo;
    if ($foo) {
        foo2();
    }
    else {
        foo2();
    }

    var my_iframe;

    var foor = 1 ,bar = 2;
    bar = foor;
var $k;

    var obj = { "foo" : 42 };



    function foo (bar, baz, qux, qxx) { // four parameters, may be too many
        doSomething();
    }

    var arr;
    arr [2];

    var obj = { 'foo': 'bar' };

    function hoo() {
        var ab;
        var cd;
    }

    var object = {
        foo: "bar",
        baz: 42,
        "qux-lorem": true
    };
})